﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ArchiveIISLogs
{
    public static class Strings
    {
          public static bool IsNullOrEmpty(this string input)
        {
            return (string.IsNullOrEmpty(input));
        }
        
        public static bool HasValue(this string input)
        {
            return (string.IsNullOrEmpty(input) == false);
        }
     
        public static string FormatWith(this string format, params object[] args)
        {
            if (format == null) throw new ArgumentNullException("format");
            return string.Format(format, args);
        }

        public static bool IsNumeric(this string input)
        {
            decimal numeric;
            return decimal.TryParse(input, out numeric);
        }
    }
}
